package pack0602;

import java.util.Scanner;

public class DemoB {
    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        System.out.println(a);
        int e = a.nextInt();
        int b = e / 100;
        int c = e / 10 % 10;
        int d = e % 10;
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        if (b * b * b + c * c * c + d * d * d == e) {
            System.out.println("是水仙花数");
        } else {
            System.out.println("不是水仙花数");
        }
    }
}
